package XuanZeJieGou;

import java.util.Scanner;
//if但选择结构
public class IfDemo1 {
    public static void main(String[] args) {
        System.out.println("请输入：");
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        if(s.equals("Hello")){
            System.out.println("Hello");
        }
        System.out.println("end");
        sc.close();
    }
}
